package com.nine.design.pay.v3;

import org.springframework.beans.factory.InitializingBean;

/**
 * 继承 InitializingBean 接口
 */
public abstract class AbstractHandlerStrategy implements InitializingBean {

    // 处置前
    public void before() {

    }

    public void pay() {
        before();
        doPay();
        after();
    }

    // 具体的支付方式
    public abstract void doPay();

    // 处置后
    public void after() {

    }

    // 实际还存在这个
    //void afterPropertiesSet() throws Exception;

}
